﻿using System;
using System.Data.Linq.Mapping;

namespace AEM.Data.Model
{
    [Table(Name = "TableSerialDataRecieved")]
    public class SerialDataLog
    {
        public SerialDataLog()
        {
            this.JoinDate = DateTime.Now.ToString("yyyyMMddHHmmssfff");
        }
        public SerialDataLog(int liftnum, string data)
        {
            this.JoinDate = DateTime.Now.ToString("yyyyMMddHHmmssfff");
            this.LiftNum = liftnum;
            this.Data = data;
        }
        [Column]
        public string JoinDate { get; set; }
        [Column]
        public int LiftNum { get; set; }
        [Column]
        public string Data { get; set; }
    }
}
